<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<script th:inline="javascript">
    var appName = [[${#request.getContextPath()}]];
    console.log("应用名："+appName);
    window.location.href=appName+"/user/toLogin";
</script>
</html>